namespace Xmef.Engine
{
    using System;
    using System.Collections.Generic;
    using Xmef.Interfaces;

    [Serializable]
    public abstract class PluginService : PluginServiceProvider<IPluginService>, IPluginService, IPluginServiceProvider<IPluginService>, IPluginIdentity
    {
        private Type _type;

        protected PluginService(Type type)
        {
            this._type = type;
        }

        public abstract int Count(Type type);
        public abstract IGenericCollection<IPluginObject> GetObjects(Type type);

        public Type ServiceType
        {
            get
            {
                return this._type;
            }
        }
    }
}

